// ie polyfill
import '@babel/polyfill'

import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/'
import { VueAxios } from './utils/request'
import Dictionary from './utils/dict/Dictionary'
import Antd from 'ant-design-vue/dist/antd-with-locales.min'

import bootstrap from './core/bootstrap'
import './core/lazy_use'
import './permission' // permission control
import './utils/filter' // global filter
import i18n from './locales'
import Base64 from 'base64url'
import VueViewer from 'v-viewer'
import $ from 'jquery'
import { Datepicker, Timepicker, DatetimePicker, DateRangePicker } from '@livelybone/vue-datepicker';
import 'ant-design-vue/dist/antd.less'
import 'font-awesome/css/font-awesome.min.css'
import 'viewerjs/dist/viewer.css'
import '../node_modules/@livelybone/vue-datepicker/lib/css/index.css'
import './assets/css/ant-globa.less'
import './assets/css/common.less'

Vue.config.productionTip = false

// mount axios Vue.$http and this.$http
Vue.use(Antd)
Vue.use(VueAxios)
Vue.use(VueViewer)
Vue.use($)

// Global register
Vue.component('datepicker', Datepicker);
Vue.component('timepicker', Timepicker);
Vue.component('datetime-picker', DatetimePicker);
Vue.component('date-range-picker', DateRangePicker);
Vue.prototype.Base64 = Base64
Vue.prototype.Dict = Dictionary
Vue.config.devtools = process.env.NODE_ENV === 'development'

new Vue({
  router,
  store,
  i18n,
  created: bootstrap,
  render: h => h(App)
}).$mount('#app')
